-
Notifications
You must be signed in to change notification settings - Fork 2.6k
fix: show notification when corrupt task fails to load #6659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed the bug where I was deleting tasks without telling anyone. Turns out users prefer explanations over digital amnesia.
|
The integration test failure appears to be unrelated to this PR. The failing test |
src/i18n/locales/ca/common.json
Outdated
| }, | ||
| "mode_import_failed": "Ha fallat la importació del mode: {{error}}" | ||
| "mode_import_failed": "Ha fallat la importació del mode: {{error}}", | ||
| "task_corrupt_deleted": "The selected task could not be loaded and has been removed from history. This usually happens when the task files are corrupted or missing." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this intentional? The error message is still in English while all other messages in this file are translated to Catalan. Should we add the Catalan translation to maintain consistency for non-English users?
| try { | ||
| const { historyItem } = await this.getTaskWithId(id) | ||
| await this.initClineWithHistoryItem(historyItem) // Clears existing task. | ||
| } catch (error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding error logging here for debugging purposes:
This would help track down issues in production when tasks fail to load.
|
@roomote-agent use pr-fixer to address the review |
|
I see the review comments and will address them now:
Working on these changes... |
|
I have successfully addressed both review comments:
All tests are passing and the CI checks are running successfully. The changes are ready for review. |
daniel-lxs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@roomote-agent can you resolve the merge conflicts here please? |
|
Hi @mrubens! I see the merge conflicts on this PR. I'm working on resolving them now. I'll update you once they're fixed and the changes are pushed. |
a077f4b to
7382ddc
Compare
|
✅ Merge conflicts resolved successfully! I have successfully resolved the merge conflicts between this PR and the main branch. Here is what was done: Changes Made:
Testing:
The PR is now up-to-date with the main branch and ready for review once all CI checks complete. |
|
I think roomote made a mess of this one unfortunately :( |
7382ddc to
f476729
Compare
|
Merge conflict resolution summary for PR #6659
Current status: Checks are running; PR is mergeable once required checks pass. |
mrubens
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need translations in all languages?
Summary
This PR fixes issue #6592 where clicking on a historic task with corrupt/missing files would delete the task without any notification to the user.
Changes
Testing
Added unit tests that cover:
User Experience
When a user clicks on a corrupt task in the history, they will now see an error message:
'The selected task could not be loaded and has been removed from history. This usually happens when the task files are corrupted or missing.'
This provides clear feedback about what happened instead of silently deleting the task.
Fixes #6592
Important
Fixes issue #6592 by notifying users when a corrupt task fails to load and is deleted, with updates to
ClineProvider.tsandcommon.json.showTaskWithIdinClineProvider.tsnow catches errors fromgetTaskWithIdand shows an error message if a task is corrupt or missing.task_corrupt_deletederror message tocommon.jsonfor user notification.showTaskWithIdcovering successful task loading, error handling, and skipping reload for current tasks.This description was created by
for f476729. You can customize this summary. It will automatically update as commits are pushed.